package com.bjsxt.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("storage-service")
public interface StorageServiceFeign {

    @GetMapping("/deduct/{productNo}/{count}")
    ResponseEntity<Void> deduct(
            @PathVariable("productNo") String productNo ,
            @PathVariable("count") Integer count
    ) ;
}
